package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {

    /**
     * 查询所有自媒体文章
     * @return
     */
    ResponseResult findList(WmNewsPageReqDto dto);
    ResponseResult submitNews(WmNewsDto wmNewsDto);

    ResponseResult findById(Integer id);

    ResponseResult deleteById(Integer id);

    ResponseResult downOrUp(WmNewsDto wmNewsDto);

    ResponseResult updateWmNews(WmNews wmNews);

    ResponseResult findWmUserById(Integer id);

    ResponseResult<List<Integer>> findRelease();


    ResponseResult findNewsList(NewsAuthDto newsAuthDto);

    ResponseResult findWmNewsVo(Integer id);

    ResponseResult authPass(NewsAuthDto dto);

    ResponseResult authFail(NewsAuthDto dto);
}
